/****************************************
 * Copyright (c) 2015 NiuWa.
 * All rights reserved.
 * Created on 2015年4月5日
 * 
 * Contributors:
 * 	bwz - initial implementation
 ****************************************/
package com.niuwa.p2p.service.impl.business;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.business.InvestProdRecordDao;
import com.niuwa.p2p.entity.business.InvestProdRecord;
import com.niuwa.p2p.service.business.IInvestProdRecordService;


/**
 * @title 产品投资记录service实现类
 *
 * @author bwz
 * @version 1.0
 * @created 2015年4月5日
 */
@Service
public class IInvestProdRecordServiceImpl implements IInvestProdRecordService {
	
	@Autowired
	private InvestProdRecordDao investProdRecordDao;

	
	@Override
	public int countProdRecord(Map<String, Object> paramMap) {
		int count = investProdRecordDao.countProdRecord(paramMap);
		return count;
	}
	
	
	@Override
	public List<InvestProdRecord> selectInvestRecordListPage(Map<String, Object> paramMap) throws Exception {
		List<InvestProdRecord> list = investProdRecordDao.selectInvestRecordListPage(paramMap);
		return list;
	}


	@Override
	public int countPlanProdRecord(Long custId) throws Exception {
		int count = investProdRecordDao.countPlanProdRecord(custId);
		return count;
	}

}
